package com.neutech.solar.entity;

import com.neutech.solar.util.GameUtil;

import java.awt.*;

/**
 * @author 刘昱含
 * @date 2021/7/22 10:00
 */
public class Background extends AbstractSolarObject{

    @Override
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);
    }

    public Background(){
        this.img = GameUtil.getImage("Bgc.png");
    }
    public Background(String imgName,int x,int y){
        this.img = GameUtil.getImage(imgName);
        this.x = x;
        this.y = y;
    }

}
